/*
 * @Author: FanWeiHua
 * @Date: 2021-07-26 21:35:47
 * @LastEditTime: 2021-07-26 22:08:21
 * @Description:
 */
// initial state
const state = () => ({
  count: 0
});

// getters
const getters = {};

// actions
const actions = {
  incrementAs(context) {
    context.commit('increment');
  }
};

// mutations
const mutations = {
  increment(state) {
    state.count++;
  }
};

export default {
  namespaced: true,
  state,
  getters,
  actions,
  mutations
};
